﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CodeCamp.Models.Sessions.SessionsTagViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  <%= Html.Encode( Model.EventDisplayName ) %> | Sessions Tagged as <%= Html.Encode( Model.ThisTag.Name ) %>
</asp:Content>

<asp:Content ID="EventTags" ContentPlaceHolderID="EventTagsContent" runat="server">
  <div id="eventTagsContainer" class="widget rounded-10">
    <h3>Tags</h3>
    <% Html.RenderPartial( "PartialViews/EventTags", Model.EventTags ); %>
  </div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <h1>Sessions tagged as <i><%= Html.Encode( Model.ThisTag.Name ) %></i></h1>
  <div class="presentations">
    <% foreach ( var session in Model.Sessions )
       { %>
        <div class="presentation-container">
          <% Html.RenderPartial( "PartialViews/SessionTitle", 
               new CodeCamp.Models.Sessions.SessionTitle { SessionId = session.Id, Title = session.Title } ); %>
          <% Html.RenderPartial( "PartialViews/SessionPresenters", session.SessionPresenters ); %>
          <% if ( session.SessionScheduleInfo != null )
             { Html.RenderPartial( "PartialViews/SessionScheduleInfo", session.SessionScheduleInfo ); } %>
          <% Html.RenderPartial( "PartialViews/SessionTags", session.Tags ); %>

          <p>
            <%= Html.Encode( session.Description ) %>
          </p>
        </div>
    <% } %>
  </div>

</asp:Content>
